home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // MenuControl --> MenuItems --> FusionWindow
- //
-
- #include "fliwin.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- #include <string.h>
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // HotKey()
- //
- // Defines a new hotkey which cooresponds to a menu option
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void MenuItems::_HotKey(char *HotKeyOption,int HotKey)
- {
- if (!NumberOfOptions)
- return;
-
- _Options &Item=*(Option+NumberOfOptions-1);
-
- Item.HotKeyOption=HotKeyOption;
- Item.HotKey=HotKey;
-
- HotKeys++;
- }
-
- void MenuManager::HotKey(char *HotKeyOption,int HotKey)
- {
- if (!NumberOfMenus)
- return;
-
- if (!CurrentLevel)
- Menus[NumberOfMenus-1]->_HotKey(HotKeyOption,HotKey);
- else
- SubMenuTrack[CurrentLevel-1]->_HotKey(HotKeyOption,HotKey);
- }
-
-